﻿@namespace MudBlazor.UnitTests.TestComponents

<MudDataGrid Items="@_items" Sortable="true">
    <Columns>
        <Column T="Item" Field="@nameof(Item.Name)" />
    </Columns>
</MudDataGrid>

@code {
    private IEnumerable<Item> _items = new List<Item>()
    {
        new Item("B"), 
        new Item("A"), 
        new Item("C")
    };

    public class Item
    {
        public string Name { get; set; }

        public Item(string name)
        {
            Name = name;
        }
    }

}
